package com.cosmo.adapter.demo01;

import com.cosmo.adapter.demo01.model.Adaptee;
import com.cosmo.adapter.demo01.model.ClassAdapter;
import com.cosmo.adapter.demo01.model.ObjectAdapter;

public class test {
    public static void main(String[] args) {
        System.out.println("类适配器模式测试：");
        Target target = new ClassAdapter();
        target.request();
        System.out.println("------------------------------------------");
        System.out.println("对象适配器模式测试：");
        Adaptee adaptee = new Adaptee();
        Target target0 = new ObjectAdapter(adaptee);
        target0.request();
    }
}
